package com.jokins.admin.ios.sections.service.impl;

import com.jokins.admin.ios.sections.actioncontext.GetSectionsListDoc;
import com.jokins.admin.ios.sections.service.BookSectionService;
import com.jokins.admin.ios.sections.vo.BookSectionVo;
import com.jokins.common.actions.action.ActionContext;
import com.jokins.common.actions.util.ActionDispatcher;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 〈〉<br>
 *
 * @author Mr.Wang
 * @create 2025/2/7
 */
@Slf4j
@Service
public class BookSectionServiceImpl implements BookSectionService {

    @Override
    public List<BookSectionVo> getSectionsList() {
        GetSectionsListDoc doc=new GetSectionsListDoc();
        ActionDispatcher.execute(doc);
        return (List<BookSectionVo>) doc.getResultValue(ActionContext.RESULT_DOC_KEY);
    }
}